﻿using System;
using System.Runtime.Serialization;

namespace Sustainalytics.ESGRatings.BusinessLogic.Exceptions
{
    [Serializable]
    public class EsgProfileObjectNullException : Exception
    {
        
        // For guidelines regarding the creation of new exception types, see
        //    https://msdn.microsoft.com/en-us/library/87cdya3t(v=vs.110).aspx

        public string Errors { get; set; }

        public EsgProfileObjectNullException()
        {
        }

        public EsgProfileObjectNullException(string message) : base(message)
        {
            this.Errors = message;
        }

        public EsgProfileObjectNullException(string message, Exception inner) : base(message, inner)
        {
            this.Errors = message;
        }

        protected EsgProfileObjectNullException(
            SerializationInfo info,
            StreamingContext context) : base(info, context)
        {
        }
    }
}
